package com.moxiao.yfjh.module.member.convert.auth;

import com.moxiao.yfjh.module.member.controller.app.auth.vo.AppAuthLoginRespVO;
import com.moxiao.yfjh.module.member.controller.app.auth.vo.AppAuthSocialLoginReqVO;
import com.moxiao.yfjh.module.member.controller.app.social.vo.AppSocialUserUnbindReqVO;
import com.moxiao.yfjh.module.system.api.oauth2.dto.OAuth2AccessTokenRespDTO;
import com.moxiao.yfjh.module.system.api.social.dto.SocialUserBindReqDTO;
import com.moxiao.yfjh.module.system.api.social.dto.SocialUserUnbindReqDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AuthConvert {

    AuthConvert INSTANCE = Mappers.getMapper(AuthConvert.class);

    SocialUserBindReqDTO convert(Long userId, Integer userType, AppAuthSocialLoginReqVO reqVO);
    SocialUserUnbindReqDTO convert(Long userId, Integer userType, AppSocialUserUnbindReqVO reqVO);

    AppAuthLoginRespVO convert(OAuth2AccessTokenRespDTO bean, String openid);

}
